<?php

namespace App\Winged\Patients\Controllers;

use App\Winged\Patients\Api\Kase;
use Encore\Admin\Facades\Admin;
use App\Winged\Components\Content;
use Illuminate\Http\Request;
use App\Winged\Patients\Api\Patients;


class StatisticsController extends BaseController
{
	public function index()
	{
		return $this->Content(function (Content $content) {
		    $tops = [];
            // $tops[] = Kase::getTop5(0);
			// $tops[] = Kase::getTop5(6);
            // $tops[] = Kase::getTop5(1);
			// $tops[] = Kase::getTop5(7);
            // $tops[] = Kase::getTop5(2);
            // $tops[] = Kase::getTop5(3);
            // $tops[] = Kase::getTop5(4);
            // $tops[] = Kase::getTop5(5);
            $view = view('winged.patients::statistics.index',compact('tops'));
			$content->body($view);
		});
	}
}
